﻿namespace ASoft.WPF.ViewModel
{

    public class ViewModelLocator
    {
        static MainViewModel _Main = null;
        public MainViewModel Main
        {
            get
            {
                if (_Main == null)
                {
                    _Main = new MainViewModel();
                }
                return _Main;
            }
        }

        public PLCDataViewModel 上位机设置
        {
            get
            {
                return new PLCDataViewModel();
            }
        }

        public WeatherStationViewModel 气象站设置
        {
            get
            {
                return new WeatherStationViewModel();
            }
        }

        public RoomSettingViewModel 温室设置
        {
            get
            {
                return new RoomSettingViewModel();
            }
        }

        public SystemSetViewModel 系统设置
        {
            get
            {
                return new SystemSetViewModel();
            }
        }

        public PhoneViewModel 手机设置
        {
            get
            {
                return new PhoneViewModel();
            }
        }

        public static DbLogViewModel DbLog
        {
            get
            {
                return new DbLogViewModel();
            }
        }

        public static RoomInfoViewModel 温室历史数据
        {
            get
            {
                return new RoomInfoViewModel();
            }
        }

        public static WeatherStationInfoViewModel 气象站历史数据
        {
            get
            {
                return new WeatherStationInfoViewModel();
            }
        }

    }
}